import useAxiosApi from '/@/utils/useAxiosApi';
const baseUrl = import.meta.env.VITE_APP_EDU_API;

export function teacherTask() {
    return useAxiosApi(baseUrl+`/getTeacherClassAjax`, {
        method: 'POST',
        data: {},
    });
}
export function startKldm (tcID) {
    return useAxiosApi(baseUrl+`/kldmAjax?tcID=`+tcID, {
        method: 'POST',
        data: {tcID},
    });
}
export function stopKldm (tcID) {
    return useAxiosApi(baseUrl+`/stopKldmAjax?tcID=`+tcID, {
        method: 'POST',
        data: {tcID},
    });
}
export function getStudents (tcID) {
    return useAxiosApi(baseUrl+`/getStudentsAjax?tcID=`+tcID, {
        method: 'POST',
        data: {tcID},
    });
}
export function ewmdm () {
    return useAxiosApi(baseUrl+`/ewmdmAjax`, {
        method: 'POST',
        data: {},
    });
}
export function editAttendanceTime (tcID,sts,fid,stuIds,type,time) {
    return useAxiosApi(baseUrl+`/editAttendanceTimeAjax`, {
        method: 'POST',
        data: {tcID,sts,fid,stuIds,type,time},
    });
}
export function getAttendanceTimes (tcID) {
    return useAxiosApi(baseUrl+`/getAttendanceTimesAjax?tcID=`+tcID, {
        method: 'POST',
        data: {tcID},
    });
}
